/*CodeBuilder 3.0.1 by 2022-07-27 22:22 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	/// <summary>
	/// 
	/// </summary>
	public partial class Sys_RoleMenu : EntityBase
	{
		private string _Id;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public string Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private string _PId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNPId, 1)]
		public string PId
		{
			get { return _PId; }
			set
			{
				if (!OnPropertyChanged(CNPId, _PId, value)) return;
				_PId = value;
				SetFieldChanged(CNPId) ;
			}
		}

		private string _RoleId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNRoleId, 2, true)]
		public string RoleId
		{
			get { return _RoleId; }
			set
			{
				if (!OnPropertyChanged(CNRoleId, _RoleId, value)) return;
				_RoleId = value;
				SetFieldChanged(CNRoleId) ;
			}
		}

		private string _MenuId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNMenuId, 3)]
		public string MenuId
		{
			get { return _MenuId; }
			set
			{
				if (!OnPropertyChanged(CNMenuId, _MenuId, value)) return;
				_MenuId = value;
				SetFieldChanged(CNMenuId) ;
			}
		}

		private string _MenuCaption;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNMenuCaption, 4, true)]
		public string MenuCaption
		{
			get { return _MenuCaption; }
			set
			{
				if (!OnPropertyChanged(CNMenuCaption, _MenuCaption, value)) return;
				_MenuCaption = value;
				SetFieldChanged(CNMenuCaption) ;
			}
		}

		private string _MenuName;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNMenuName, 5)]
		public string MenuName
		{
			get { return _MenuName; }
			set
			{
				if (!OnPropertyChanged(CNMenuName, _MenuName, value)) return;
				_MenuName = value;
				SetFieldChanged(CNMenuName) ;
			}
		}

		private string _MenuArgs;
		/// <summary>
		/// 该菜单窗体参数
		/// </summary>
		[Entity(CNMenuArgs, 6)]
		public string MenuArgs
		{
			get { return _MenuArgs; }
			set
			{
				if (!OnPropertyChanged(CNMenuArgs, _MenuArgs, value)) return;
				_MenuArgs = value;
				SetFieldChanged(CNMenuArgs) ;
			}
		}

		private bool _IsMenuSplit;
		/// <summary>
		/// 菜单导航下一个是否为分隔符 -
		/// </summary>
		[Entity(CNIsMenuSplit, 7, true)]
		public bool IsMenuSplit
		{
			get { return _IsMenuSplit; }
			set
			{
				if (!OnPropertyChanged(CNIsMenuSplit, _IsMenuSplit, value)) return;
				_IsMenuSplit = value;
				SetFieldChanged(CNIsMenuSplit) ;
			}
		}

		private string _ControlRights;
		/// <summary>
		/// 窗体控件权限
		/// </summary>
		[Entity(CNControlRights, 8)]
		public string ControlRights
		{
			get { return _ControlRights; }
			set
			{
				if (!OnPropertyChanged(CNControlRights, _ControlRights, value)) return;
				_ControlRights = value;
				SetFieldChanged(CNControlRights) ;
			}
		}

		private int _OrderNo;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNOrderNo, 9, true)]
		public int OrderNo
		{
			get { return _OrderNo; }
			set
			{
				if (!OnPropertyChanged(CNOrderNo, _OrderNo, value)) return;
				_OrderNo = value;
				SetFieldChanged(CNOrderNo) ;
			}
		}

		private bool _IsMenu;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNIsMenu, 10, true)]
		public bool IsMenu
		{
			get { return _IsMenu; }
			set
			{
				if (!OnPropertyChanged(CNIsMenu, _IsMenu, value)) return;
				_IsMenu = value;
				SetFieldChanged(CNIsMenu) ;
			}
		}

		private bool _IsModalForm;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNIsModalForm, 11, true)]
		public bool IsModalForm
		{
			get { return _IsModalForm; }
			set
			{
				if (!OnPropertyChanged(CNIsModalForm, _IsModalForm, value)) return;
				_IsModalForm = value;
				SetFieldChanged(CNIsModalForm) ;
			}
		}

		private bool _ToolBarVisible;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNToolBarVisible, 12, true)]
		public bool ToolBarVisible
		{
			get { return _ToolBarVisible; }
			set
			{
				if (!OnPropertyChanged(CNToolBarVisible, _ToolBarVisible, value)) return;
				_ToolBarVisible = value;
				SetFieldChanged(CNToolBarVisible) ;
			}
		}

		private string _ToolBarCaption;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNToolBarCaption, 13)]
		public string ToolBarCaption
		{
			get { return _ToolBarCaption; }
			set
			{
				if (!OnPropertyChanged(CNToolBarCaption, _ToolBarCaption, value)) return;
				_ToolBarCaption = value;
				SetFieldChanged(CNToolBarCaption) ;
			}
		}

		private string _ToolBarIcon;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNToolBarIcon, 14)]
		public string ToolBarIcon
		{
			get { return _ToolBarIcon; }
			set
			{
				if (!OnPropertyChanged(CNToolBarIcon, _ToolBarIcon, value)) return;
				_ToolBarIcon = value;
				SetFieldChanged(CNToolBarIcon) ;
			}
		}

		private int _ToolBarOrderNo;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNToolBarOrderNo, 15, true)]
		public int ToolBarOrderNo
		{
			get { return _ToolBarOrderNo; }
			set
			{
				if (!OnPropertyChanged(CNToolBarOrderNo, _ToolBarOrderNo, value)) return;
				_ToolBarOrderNo = value;
				SetFieldChanged(CNToolBarOrderNo) ;
			}
		}

		private bool _ToolBarSplit;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNToolBarSplit, 16, true)]
		public bool ToolBarSplit
		{
			get { return _ToolBarSplit; }
			set
			{
				if (!OnPropertyChanged(CNToolBarSplit, _ToolBarSplit, value)) return;
				_ToolBarSplit = value;
				SetFieldChanged(CNToolBarSplit) ;
			}
		}

		private bool _HasUrl;
		/// <summary>
		/// 是否包含Web Url
		/// </summary>
		[Entity(CNHasUrl, 17, true)]
		public bool HasUrl
		{
			get { return _HasUrl; }
			set
			{
				if (!OnPropertyChanged(CNHasUrl, _HasUrl, value)) return;
				_HasUrl = value;
				SetFieldChanged(CNHasUrl) ;
			}
		}

		private string _WebUrl;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNWebUrl, 18)]
		public string WebUrl
		{
			get { return _WebUrl; }
			set
			{
				if (!OnPropertyChanged(CNWebUrl, _WebUrl, value)) return;
				_WebUrl = value;
				SetFieldChanged(CNWebUrl) ;
			}
		}

		private DateTime _AddTime;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNAddTime, 19, true)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private string _AddUserId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNAddUserId, 20)]
		public string AddUserId
		{
			get { return _AddUserId; }
			set
			{
				if (!OnPropertyChanged(CNAddUserId, _AddUserId, value)) return;
				_AddUserId = value;
				SetFieldChanged(CNAddUserId) ;
			}
		}

		private string _AddHost;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNAddHost, 21)]
		public string AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		private DateTime? _LastTime;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNLastTime, 22)]
		public DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		private string _LastHost;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNLastHost, 23)]
		public string LastHost
		{
			get { return _LastHost; }
			set
			{
				if (!OnPropertyChanged(CNLastHost, _LastHost, value)) return;
				_LastHost = value;
				SetFieldChanged(CNLastHost) ;
			}
		}

		private string _LastUserId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNLastUserId, 24)]
		public string LastUserId
		{
			get { return _LastUserId; }
			set
			{
				if (!OnPropertyChanged(CNLastUserId, _LastUserId, value)) return;
				_LastUserId = value;
				SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNPId = "PId";
		public const string CNRoleId = "RoleId";
		public const string CNMenuId = "MenuId";
		public const string CNMenuCaption = "MenuCaption";
		public const string CNMenuName = "MenuName";
		public const string CNMenuArgs = "MenuArgs";
		public const string CNIsMenuSplit = "IsMenuSplit";
		public const string CNControlRights = "ControlRights";
		public const string CNOrderNo = "OrderNo";
		public const string CNIsMenu = "IsMenu";
		public const string CNIsModalForm = "IsModalForm";
		public const string CNToolBarVisible = "ToolBarVisible";
		public const string CNToolBarCaption = "ToolBarCaption";
		public const string CNToolBarIcon = "ToolBarIcon";
		public const string CNToolBarOrderNo = "ToolBarOrderNo";
		public const string CNToolBarSplit = "ToolBarSplit";
		public const string CNHasUrl = "HasUrl";
		public const string CNWebUrl = "WebUrl";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
